var ftpClient = require('./lib/client.js'),
    config = {
        host: '117.114.138.52',
        port: 20000,
        user: 'eh',
        password: '123456'
    },
    options = {
        logging: 'basic'
    },
    client = new ftpClient(config, options);

    client.connect(function () {

    client.upload(['ftp/**'], '/home/ftp', {
        baseDir: 'ftp',
        overwrite: 'older'
    }, function (result) {
        console.log(result);
    });
    // client.download('/home/ftp/', 'video/', {
    //       overwrite: 'all'
    //   }, function (result) {
    //       console.log(result);
    //   });
});
